#pragma once

#include "lg.h"
#include "lg_ref.h"


typedef struct {
	char name[128];
	int type;
	union {
		LGFloat f;
		LGVector v;
		LGMatrix m;
		LGTexture* tex;
		LGCanvas* canvas;
	};
}LGUniform;

struct LGMaterial {
	LGRef ref;
	LGShader* shader;
	LGDrawType drawType;
	LGDepthTest depthTest;
	LGUniform uniforms[LG_MAX_UNIFORM];
	unsigned count;
};